FROM node:10

RUN mkdir -p /home/app
WORKDIR /home/app

COPY . /home/app

RUN npm install

RUN npm run build

WORKDIR /home/app/server

RUN npm install

EXPOSE 3002

ENTRYPOINT ["node", "./index.js"]